Bug 596494 - New property "cursor" in 2.18's GdkWindow with wrong type?
authorCody Russell <bratsche@gnome.org>
Sun, 27 Sep 2009 19:37:19 +0000 (14:37 -0500)
committerCody Russell <bratsche@gnome.org>
Sun, 27 Sep 2009 19:37:19 +0000 (14:37 -0500)
Use a boxed paramspec with GDK_TYPE_CURSOR instead of a pointer paramspec.

gdk/gdkwindow.c

index c8e7249ec580d8e54f172350999a3bd835f1fccc..93024accf33de68029bb328f05f52feabf5d1201 100644 (file)
@@ -468,10 +468,11 @@ gdk_window_class_init (GdkWindowObjectClass *klass)
   /* Properties */
   g_object_class_install_property (object_class,
                                    PROP_CURSOR,
-                                   g_param_spec_pointer ("cursor",
-                                                         P_("Cursor"),
-                                                         P_("Cursor"),
-                                                         G_PARAM_READWRITE));
+                                   g_param_spec_boxed ("cursor",
+                                                       P_("Cursor"),
+                                                       P_("Cursor"),
+                                                       GDK_TYPE_CURSOR,
+                                                       G_PARAM_READWRITE));
 
   /**
    * GdkWindow::pick-embedded-child: